from Utils.GetCFContest import get_cf_contest


def get_remote_url(remote_oj, remote_id):
    if remote_oj == "CF":
        contest = get_cf_contest(remote_id)
        return f"https://codeforces.com/problemset/problem/{contest}/{remote_id[len(contest):]}"
    if remote_oj == "HDU":
        return f"https://acm.hdu.edu.cn/showproblem.php?pid={remote_id}"
